package com.zx.mes.upms.hyl.pagemodel;


import com.zx.mes.hyl.common.util.jwt.JWTInfoI;


import java.util.ArrayList;
import java.util.List;

/**
 * 详细的个人信息
 * @author hyl
 * @date 2017-12-17
 */
public class UserInfo implements JWTInfoI {

    private String username;
    private String name;
    private String userId;
    private String password;
    private String token;
    private List<Resource> resource=new ArrayList<>();
    private List<Menu> menu=new ArrayList<>();
    private List<Role> role=new ArrayList<>();

    public UserInfo(){}


    public UserInfo(String username, String name, String userId, String password, String token, List<Resource> resource, List<Menu> menu, List<Role> role) {
        this.username = username;
        this.name = name;
        this.userId = userId;
        this.password = password;
        this.token = token;
        this.resource = resource;
        this.menu = menu;
        this.role = role;
    }

    @Override
    public String getUniqueName() {
        return username;
    }

    @Override
    public String getId() {
        return userId;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Resource> getResource() {
        return resource;
    }

    public void setResource(List<Resource> resource) {
        this.resource = resource;
    }

    public List<Menu> getMenu() {
        return menu;
    }

    public void setMenu(List<Menu> menu) {
        this.menu = menu;
    }

    public List<Role> getRole() {
        return role;
    }

    public void setRole(List<Role> role) {
        this.role = role;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
